import type { RequestOption } from "../../index.js";
import { fields, Operation } from "./util.js";

export const close: RequestOption = {
    name: "0x00 00 关闭连接",
    description: "关闭连接",
    fields: [
        fields.op(Operation.Close),
        fields.crc,
        fields.length,
        {
            name: "reason",
            kind: "string",
            value: "close",
            length: 0,
        },
    ],
};
